<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
  <c:if test="${empty user_id}">
    <div id=nickname>Anonymous</div>
    <div id=details>
      <p>You are in readonly mode.<br>
      <c:if test="${empty opera}">
        Sign in with Google Friend Connect using your Google, Yahoo or OpenID account to start writing</p>
      </c:if>
      <c:if test="${not empty opera}">
        You seem to be using Opera browser. Unfortunately it is not supported by Google Friend Connect. But you can use 
        your VK nickname.
        <!--We're working
        on other sign in options which will work with Opera, but for now please try using some other browser.--></p>
      </c:if>
    </div>
    <div style="text-align: center">
    <table cellpadding=1 cellspacing=1 style="margin: auto">
      <c:if test="${empty opera}">
        <tr> <td> <div id="signin_button"></div> </td> </tr>
      </c:if>
      <tr> <td> <div id="vk_login_button" onclick="doLogin();"></div> </td> </tr>
    </table>
    </div>
  </c:if>
  <c:if test="${not empty user_id}">  	
    <div id=nickname><c:out value="${nickname}"/></div>
    <div id=logout><a href="/logout">Sign out</a></div>
    <div id=add_feed><a href="/add_new_feed.jsp?userId=<c:out value="${user_id}" />">Add feed</a></div>
    <div id=user_feeds><a href="/user_feeds.jsp?userId=<c:out value="${user_id}" />">My feeds</a></div>   
  </c:if>

